package cn.jiyun.util;

import java.util.List;

public class PageResult<T> {

    private int page;
    private int total;
    private List<T> lists;

    @Override
    public String toString() {
        return "PageResult{" +
                "page=" + page +
                ", total=" + total +
                ", lists=" + lists +
                '}';
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<T> getLists() {
        return lists;
    }

    public void setLists(List<T> lists) {
        this.lists = lists;
    }

    public PageResult() {
    }

    public PageResult(int page, int total, List<T> lists) {
        this.page = page;
        this.total = total;
        this.lists = lists;
    }
}
